package com.xmy.cultivate.service;

import com.xmy.cultivate.entity.GradeLayer;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 班级分层设置 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-08-26
 */
public interface IGradeLayerService extends IService<GradeLayer> {

    Integer getLayerCount(Integer yearPart,
                          Integer quarterNum,
                          Long subjectsId,
                          Integer yearClassId,
                          Long classTypeId,
                          Integer lessonType,
                          BigDecimal startScore,
                          BigDecimal endScore
    );

    List<GradeLayer> getLayerList(Integer yearPart,
                                  Integer quarterNum,
                                  Long subjectsId,
                                  Integer yearClassId,
                                  Long classTypeId,
                                  Integer lessonType
    );

    public GradeLayer getLayer(@Param("yearPart") Integer yearPart, @Param("quarterNum") Integer quarterNum, @Param("subjectsId") Long subjectsId, @Param("yearClassId") Integer yearClassId, @Param("classTypeId") Long classTypeId, @Param("lessonType") Integer lessonType);

}
